import Vue from 'vue'
import Router from 'vue-router'

const TelecontrollerType = resolve => require(['../view/TelecontrollerType.vue'], resolve)
const SelectBrand = resolve => require(['../view/SelectBrand.vue'], resolve)
const AddTelecontroller = resolve => require(['../view/AddTelecontroller.vue'], resolve)
const TelecontrollerSetting = resolve => require(['../view/TelecontrollerSetting.vue'], resolve)
const ControllerList = resolve => require(['../view/ControllerList.vue'], resolve)

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'ControllerList',
      component: ControllerList
    },
    {
      path: '/TelecontrollerType',
      name: 'TelecontrollerType',
      component: TelecontrollerType
    },
    {
      path: '/selectBrand',
      name: 'SelectBrand',
      component: SelectBrand
    },
    {
      path: '/addTelecontroller',
      name: 'AddTelecontroller',
      component: AddTelecontroller
    },
    {
      path: '/telecontrollerSetting',
      name: 'TelecontrollerSetting',
      component: TelecontrollerSetting
    },
    {
      path: '/controllerList',
      name: 'ControllerList',
      component: ControllerList
    }
  ]
})
